Fixed 2 C syntax bugs, Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Sat, 31 Jul 1999 17:20:49 +0000 (17:20 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Sat, 31 Jul 1999 17:20:49 +0000 (17:20 +0000)
gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixbuf-io.c
gdk-pixbuf/io-png.c

index be55f15a7475fe9248f048c93af46046a3843e33..34dbf98351f0e1d5c1b4fa4f5f378f3601eac258 100644 (file)
@@ -1,3 +1,8 @@
+Sat Jul 31 19:19:47 CEST 1999
+
+       * src/gdk-pixbuf-io.c:
+       * src/io-png.c: Fixed two obvious C syntax bugs
+
 1999-07-29  Mark Crichton  <crichton@gimp.org>
 
        * src/io-png.c (image_save): Added PNG saving function
index 94e6e6b6a6d2c9599f2a9a93665f92b394c1c846..7a06da6a309a95102bb4dc84cb8e3a9165a15adb 100644 (file)
@@ -121,7 +121,7 @@ static struct {
        gboolean   (*format_check)(unsigned char *buffer, int size);
        GModule   *module;
        GdkPixBuf *(*load)(FILE *f);
-       int        (*save)(GdkPixBuf, *p, FILE *f, ...);
+       int        (*save)(GdkPixBuf *p, FILE *f, ...);
 } file_formats [] = {
        { "png",  pixbuf_check_png,  NULL, NULL, NULL },
        { "jpeg", pixbuf_check_jpeg, NULL, NULL, NULL },
index ed5bfca50b9aecb30aaeb1459688606de9e62a5f..514b13c8e51ca71057a18a1199d414be808784bd 100644 (file)
@@ -174,7 +174,7 @@ int image_save(GdkPixBuf *pixbuf, FILE *file)
      png_color_8 sig_bit;
      gint type;
      
-     g_return_val_if_fail(f != NULL, NULL);
+     g_return_val_if_fail(file != NULL, NULL);
      g_return_val_if_fail(pixbuf != NULL, NULL);
 
      h = pixbuf->art_pixbuf->height;